// 基础工单详情表单
export const baseDetailColumns = [
  {
    label: '工单号',
    prop: 'workOrderNo',
    span: 8
  },
  {
    label: '工单类型',
    prop: 'type',
    span: 8,
    type: 'select',
    dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    }
  },
  {
    label: '生产订单',
    prop: 'productionOrderNo',
    span: 8
  },
  {
    label: '销售订单',
    prop: 'salesOrderNo',
    span: 8
  },
  {
    label: '客户名称',
    prop: 'customerName',
    span: 8
  },
  {
    label: '工单状态',
    prop: 'status',
    span: 8,
    type: 'select',
    dataType: 'string',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=mfg_work_order'
  },
  {
    label: '产品编码',
    prop: 'productPartNo',
    span: 8
  },
  {
    label: '产品名称',
    prop: 'productPartName',
    span: 8
  },
  {
    label: '产品型号',
    prop: 'productPartModel',
    span: 8
  },
  {
    label: 'BOM版本',
    prop: 'bomVersion',
    span: 8
  },
  {
    label: '批次',
    prop: 'lotNo',
    span: 8
  },
  {
    label: '工单计划数量',
    prop: 'planQuantity',
    span: 8
  },
  {
    label: '制定人',
    prop: 'creator',
    span: 8
  },
  {
    label: '计划开始时间',
    prop: 'planStartTime',
    span: 8
  },
  {
    label: '计划完成时间',
    prop: 'planEndTime',
    span: 8
  },
  {
    label: '最近同步时间',
    prop: 'lastSyncTime',
    span: 8
  },

  {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 2,
    minRows: 2,
    maxlength: 300,
    overHidden: true,
    showWordLimit: true,
    span: 24
  },
  {
    label: '扩展属性',
    prop: 'extFields',
    type: 'textarea',
    labelTip: '其他系统中工单的个性化参数化信息（MES中并未维护），以json格式同步至此处，可用于工单列表显示等。',
    span: 24,
    maxRows: 2,
    minRows: 2,
    maxlength: 300,
    showWordLimit: true
  }
];
// 改制返工详情表单
export const restWorkDetailColumns = [
  {
    label: '工单号',
    prop: 'workOrderNo',
    span: 8
  },
  {
    label: '工单类型',
    prop: 'type',
    span: 8,
    type: 'select',
    dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    }
  },
  {
    label: '原始工单',
    prop: 'originalWorkOrderNo',
    span: 8
  },
  {
    label: '原生产订单',
    prop: 'productionOrderNo',
    span: 8
  },
  {
    label: '原销售订单',
    prop: 'salesOrderNo',
    span: 8
  },
  {
    label: '客户名称',
    prop: 'customerName',
    span: 8
  },
  {
    label: '工单状态',
    prop: 'status',
    span: 8,
    type: 'select',
    dataType: 'string',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=mfg_work_order'
  },
  {
    label: '原产品编码',
    prop: 'originalProductPartNo',
    span: 8
  },
  {
    label: '原产品名称',
    prop: 'originalProductPartName',
    span: 8
  },
  {
    label: '原产品型号',
    prop: 'originalProductPartModel',
    span: 8
  },

  {
    label: '产品总数',
    prop: 'originalQuantity',
    span: 8
  },
  {
    label: '改制后产品编码',
    prop: 'productPartNo',
    span: 8
  },
  {
    label: '改制后产品名称',
    prop: 'productPartName',
    span: 8
  },
  {
    label: '改制后产品型号',
    prop: 'productPartModel',
    span: 8
  },
  {
    label: 'BOM版本',
    prop: 'bomVersion',
    span: 8
  },
  {
    label: '批次',
    prop: 'lotNo',
    span: 8
  },
  {
    label: '改制返工数',
    prop: 'planQuantity',
    span: 8
  },
  {
    label: '计划开始时间',
    prop: 'planStartTime',
    span: 8
  },
  {
    label: '计划完成时间',
    prop: 'planEndTime',
    span: 8
  },
  {
    label: '制定人',
    prop: 'creator',
    span: 8
  },

  {
    label: '改制说明',
    prop: 'reworkDescription',
    type: 'textarea',
    maxRows: 2,
    minRows: 2,
    maxlength: 300,
    overHidden: true,
    showWordLimit: true,
    span: 24
  }
  // {
  //   label: '返工需求',
  //   prop: 'reworkRequired',
  //   type: 'textarea',
  //   span: 24,
  //   maxRows: 2,
  //   minRows: 2,
  //   maxlength: 300,
  //   showWordLimit: true
  // }
];
// 不良返工详情表单
export const badWorkDetailColumns = [
  {
    label: '工单号',
    prop: 'workOrderNo',
    span: 8
  },
  {
    label: '工单类型',
    prop: 'type',
    span: 8,
    type: 'select',
    dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    }
  },
  {
    label: '原始工单',
    prop: 'originalWorkOrderNo',
    span: 8
  },
  {
    label: '原生产订单',
    prop: 'productionOrderNo',
    span: 8
  },
  {
    label: '原销售订单',
    prop: 'salesOrderNo',
    span: 8
  },
  {
    label: '客户名称',
    prop: 'customerName',
    span: 8
  },
  {
    label: '工单状态',
    prop: 'status',
    span: 8,
    type: 'select',
    dataType: 'string',
    props: {
      label: 'dictValue',
      value: 'dictKey'
    },
    dicUrl: '/api/blade-system/dict/dictionary?code=mfg_work_order'
  },
  {
    label: '产品编码',
    prop: 'productPartNo',
    span: 8
  },
  {
    label: '产品名称',
    prop: 'productPartName',
    span: 8
  },
  {
    label: '产品型号',
    prop: 'productPartModel',
    span: 8
  },
  {
    label: 'BOM版本',
    prop: 'bomVersion',
    span: 8
  },
  {
    label: '批次',
    prop: 'lotNo',
    span: 8
  },
  {
    label: '产品总数',
    prop: 'originalQuantity',
    span: 8
  },
  {
    label: '不良返工数',
    prop: 'planQuantity',
    span: 8
  },
  {
    label: '计划开始时间',
    prop: 'planStartTime',
    span: 8
  },
  {
    label: '计划完成时间',
    prop: 'planEndTime',
    span: 8
  },
  {
    label: '制定人',
    prop: 'creator',
    span: 8
  },

  {
    label: '不良说明',
    prop: 'reworkDescription',
    type: 'textarea',
    maxRows: 2,
    minRows: 2,
    maxlength: 300,
    overHidden: true,
    showWordLimit: true,
    span: 24
  }
  // {
  //   label: '返工需求',
  //   prop: 'reworkRequired',
  //   type: 'textarea',
  //   span: 24,
  //   maxRows: 2,
  //   minRows: 2,
  //   maxlength: 300,
  //   showWordLimit: true
  // }
];
